package com.ruoyi.business.service.impl;

import java.util.List;

import com.ruoyi.business.mapper.GwLocationMapper;
import com.ruoyi.business.service.IGwLocationService;
import com.ruoyi.common.core.domain.entity.GwLocation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * 取号位置Service业务层处理
 *
 * @author ruoyi
 * @date 2024-07-24
 */
@Service
public class GwLocationServiceImpl implements IGwLocationService
{
    @Autowired
    private GwLocationMapper gwLocationMapper;

    /**
     * 查询取号位置
     *
     * @param locationId 取号位置主键
     * @return 取号位置
     */
    @Override
    public GwLocation selectGwLocationByLocationId(Long locationId)
    {
        return gwLocationMapper.selectGwLocationByLocationId(locationId);
    }

    /**
     * 查询取号位置列表
     *
     * @param gwLocation 取号位置
     * @return 取号位置
     */
    @Override
    public List<GwLocation> selectGwLocationList(GwLocation gwLocation)
    {
        return gwLocationMapper.selectGwLocationList(gwLocation);
    }

    /**
     * 新增取号位置
     *
     * @param gwLocation 取号位置
     * @return 结果
     */
    @Override
    public int insertGwLocation(GwLocation gwLocation)
    {
        return gwLocationMapper.insertGwLocation(gwLocation);
    }

    /**
     * 修改取号位置
     *
     * @param gwLocation 取号位置
     * @return 结果
     */
    @Override
    public int updateGwLocation(GwLocation gwLocation)
    {
        return gwLocationMapper.updateGwLocation(gwLocation);
    }

    /**
     * 批量删除取号位置
     *
     * @param locationIds 需要删除的取号位置主键
     * @return 结果
     */
    @Override
    public int deleteGwLocationByLocationIds(Long[] locationIds)
    {
        return gwLocationMapper.deleteGwLocationByLocationIds(locationIds);
    }

    /**
     * 删除取号位置信息
     *
     * @param locationId 取号位置主键
     * @return 结果
     */
    @Override
    public int deleteGwLocationByLocationId(Long locationId)
    {
        return gwLocationMapper.deleteGwLocationByLocationId(locationId);
    }
}
